package com.itheima.date;

import java.util.Date;

public class Demo01 {

    public static void main(String[] args) {

        Date date = new Date();
        System.out.println(date);
        long time = date.getTime();
        long l = System.currentTimeMillis();
        System.out.println(time);
        System.out.println(l);
        Date date1 = new Date(1000L);
        System.out.println(date1);
        //date.setTime(0L);
        System.out.println(date.getYear());
        System.out.println(date.getMonth());
        System.out.println(date.getDate());
        System.out.println(date.getDay());
        System.out.println(date.getHours());
        System.out.println(date.getMinutes());
        System.out.println(date.getSeconds());
        System.out.println(date.getTimezoneOffset());
    }
}
